package com.yonyou.pmclouds.productactive.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "pm_buzi_info")
public class BuziOrderInfoVO extends SuperVO {
    @Id
    private String id;
    private String pkTenant;
    private String orderCId; // 需要unique索引
    /**
     * 产品id
     */
    private String productId;
    /**
     * 产品版本，目前没用到
     */
    private String skuId;
    /**
     * 订单内购买数量
     */
    private int accountQuantity = 0;
    /**
     * 订单租期
     */
    private int lease = 0;
    /**
     * 订单生效日期
     */
    private Date activeDate;
    /**
     * 购买类型：新购0、加购1、续购2
     */
    private byte purType = 0;
    public static final int TYPE_NEW = 0;
    public static final int TYPE_ADD = 1;
    public static final int TYPE_RENEW = 2;
    public static final int TYPE_TRIAL = 3;
}
